Skip to main content

Com Announcement

Request

Users can subscribe via the new WebSocket to receive real-time English announcements, helping you stay updated on the latest developments, event information, and important news as soon as they become available.

Format: com_announcement_en Example: com_announcement_en


Example

Python

from websocket import create_connection

ws = create_connection("wss://stream.xt.com/notice")

# Send subscription request
ws.send('{"topic": "com_announcement_en", "event": "com_announcement_en"}')
print("Subscribed to English announcement channel")

Response

{
"topic": "com_announcement_en",
"event": "com_announcement_en",
"data": {
"id": 10304809153689, // Announcement ID
"catalogId": 10304809153689, // Category ID
"catalogName": "Latest Promotions", // Category Name
"sectionId": 10304809153689, // Subcategory ID
"sectionName": "Trading Contest", // Subcategory Name
"publishDate": 1753257631403, // Publication Timestamp (ms)
"title": "Notice of...", // Announcement Title
"content": "This is...", // Announcement Content
"disclaimer": "Trade on-the-go...", // Disclaimer
"url": "", // Announcement Link
"htmlUrl": "" // Announcement HTML Link
}
}